package cn.fintecher.pangolin.service.business.model.request;

import cn.fintecher.pangolin.common.enums.*;
import cn.fintecher.pangolin.entity.mysql.QProcessApplication;
import com.querydsl.core.BooleanBuilder;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;

import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.Set;

import static org.elasticsearch.index.query.QueryBuilders.matchPhraseQuery;

@Data
public class ProcessApplicationRequest {

    @ApiModelProperty("案件的ID")
    private String caseId;

    @ApiModelProperty("申请说明")
    private String applyRemark;

    @ApiModelProperty("申请留案到期日期")
    private Date endCaseDate;

    @ApiModelProperty("申请类型")
    private FlowType flowType;

    @ApiModelProperty("调取材料的部门Id")
    private String getFileDeptId;

    @ApiModelProperty("申调资料名称")
    private String applyFileDepartName;

    @ApiModelProperty("调取材料的内容")
    private ApplyFileContent applyContent;

    @ApiModelProperty("上传文件Id")
    private List<String> fileIds;

    @ApiModelProperty("地址Id")
    private String personalAddressId;

    @ApiModelProperty("联系电话Id")
    private String personalContactId;

    @ApiModelProperty("外访开始时间")
    private Date visitTimeStart;

    @ApiModelProperty("外访结束时间")
    private Date visitTimeEnd;

    @ApiModelProperty("协催地址")
    private String addressDetail;

    @ApiModelProperty("地址类型")
    private String addressType;

    @ApiModelProperty("关系")
    private String relationShip;

    @ApiModelProperty("申请减免金额")
    private Double applyAmount;

    @ApiModelProperty("信函模板")
    private String letterTemp;

    @ApiModelProperty(value = "案件类型")
    private CaseType caseType;
}
